REM set IIS5 write database permission  
cacls %1 /t /e /p aspnet:C
REM for IIS6
cacls %1 /t /e /p NETWORKSERVICE:C
cacls %1